<?xml version="1.0" encoding="UTF-8"?>
<!--
    MusicPliz
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>MusicPliz</title>
	<script type="text/javascript">
		function confirmDelete(){
			if (!confirm('Suprimmer ce message ?'))
				return false;
			else
				return true;
		}
	</script>
        

</h:head>
<h:body>
	<h:outputStylesheet name="style.css" library="css" />
	<ui:include src="/WEB-INF/includes/header.xhtml" />
	<div id="container">
	<h:messages showDetail="false" showSummary="true" infoClass="info" errorClass="error"/>
	<h1>
		<h:outputText value="#{MessagesBean.currentMessage.objet}" />
	</h1>
	<h2>
		<h:outputText value="#{MessagesBean.currentMessage.expediteur.prenom } #{MessagesBean.currentMessage.expediteur.nom }" />
	</h2>
	<p>
		<h:outputText value="#{MessagesBean.currentMessage.dateCreation }" />
	</p>
	<p>
		<h:outputText value="#{MessagesBean.currentMessage.contenu }" />
	</p>
	
	<div class="navigationLinks">
		<h:link outcome="#{NavigationBean.getReceivedSite()}" value="messages reçus" />
		<h:link outcome="#{NavigationBean.getSentSite()}" value="messages envoyés" />
		<h:link outcome="#{NavigationBean.getHomeSite()}" value="retour au Home" />
	</div>
	</div>
</h:body>
</html>
